home *** CD-ROM | disk | FTP | other *** search
Wrap
;***************************************************************************** ; ______ __ ______ __ __ __ ; / __ / / / / __ / Update / / \ \ / / ; / / -'__ __ / /___ ______ _____ / /_ -'_____ ______ ______ / /__ \ \ / ; / / \ \/ // __ // ____// .__// // \ / .__// __ // __ // __ / / / V3 ;/ /___ \ // /_/ // __/_ / / / /_/ // / / __ // /_/ // / / / / \ \ ;\____/ / //_____//_____//_/ /_____//_/ /_/ /_// ____//_/ /_/ /_/ \_\ ; /_/ / / ; /_/ ; S3 : CyberVision64/3D, CyberVision64 ; Cirrus Logic: Picasso II(+), Picasso IV, Spectrum, Piccolo, Piccolo SD64, Inferno ; ; CyberGraphX V3 ßETA Update Installer ©1996,1997 by Robert C. Reiswig ; $VER: V0.61 (October-22-1997) ; ; If you wish to use any part of this installer you must ask. May not be ; integrated/placed into any other package! You may NOT change this in an way! ; You man NOT take or use the ENV definitions and use them without direct ; permission from me! Changes, suggestions or problems: robr@phase5.de or vgr@best.com ;******************************************************************************** ;******************************************************************************** ; Cyber Release & Boards ;******************************************************************************** (set @user-level 2) (set #cyberver "V3 41.2") (set NoBoard 0) (set whereback "SYS:Storage") (message (cat "\nCyberGraphX " #cyberver "\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n" "\nCyberVision64/3D & CyberVision64\n\nPicasso II(+) & Picasso IV\n\nSpectrum\n\nPiccolo & Piccolo SD64\n\nInferno" ) ) (welcome) ;******************************************************************************** ; Read All System information ;******************************************************************************** (set cpu (database "cpu")) (if (> (exists ("sys:libs/68060.library")) 0) (set cpu "68060") ) (set vblank (database "vblank")) (set graphmem (database "graphics-mem")) (set totmem (database "total-mem")) (set osver (/ (getversion "LIBS:version.library") 65536)) (if (= vblank "60") ((set blank "NTSC")) ((set blank "PAL"))) (set fastmem (- totmem graphmem)) ( if (= osver 37) ( (set workbench "2.0")) ( if (= osver 38) ( (set workbench "2.1")) ( if (= osver 39) ( (set workbench "3.0")) ( if (= osver 40) ( (set workbench "3.1")) ( if (= osver 41) ( (set workbench "3.2")) ))))) (set pick 0) ;******************************************************************************** ;English Strings ;******************************************************************************** (set #By (cat "\n\nCyberGraphX\n\nRelease Version " #cyberver "\n\n\n\n" "by:\n\nVision Factory Development" ) ) (set #nobackup "\n\nThis installer will copy the correct new V3 Libs and Monitor to the correct places. It will not do any backup currently.\n\nThis will not install V3 for the first time, it just _updates_ a V3 system. A V2->V3 updater is in the works.") (set #askzorro "\nWhat type of machine is CyberGraphX V3 installed on?\n") (set #askcpu "\nWhat CPU does the machine have that you are updating CyberGraphX V3 on? The installer has found:\n") (set #wherelibs "Where are your CyberGraphX V3 libraries located? The default is 'SYS:Libs'") (set #whatboard (cat "\nPlease Select the Graphics Board you wish to update CyberGraphX Monitor File for:\n")) (set #todo-prompt "\nDo you wish to install:\n") (set #cgxmode-todo " CGXMode - Create & Change Screen Modes") (set #wheremode "Where do you wish to copy the CGXMode Program?") (set #whereshowcgxconfig "Where do you wish to copy the ShowCGXconfig Program?") (set #showcgxconfig " ShowCGXconfig - CGX Info Program") ;******************************************************************************** ;German Strings ;******************************************************************************** (if (= @language "deutsch") ( (set #nobackup "\n\nDieses Installationsskript kopiert die neuen V3 Bibliotheken und Monitore in die entsprechenden Verzeichnisse. Es wird keine Sicherung vorgenommen.\n\nEs ist keine V3 Erstinstallation, das V3 System wird nur _erneuert_ . Ein V2->V3 Update ist aber bereits in Arbeit.") (set #askzorro "\nWelche Erweiterungsslots besitzt der Computer, auf dem Sie CyberGraphX V3 installieren ?\n") (set #askcpu "\nWelchen Prozessor besitzt der Computer, auf dem Sie CyberGraphX V3 installieren wollen ? Der installer hat folgendes gefunden:\n") (set #wherelibs "Wo befinden sich die CyberGraphX V3 Bibliotheken ? Standard ist 'SYS:Libs'") (set #whatboard (cat "\nBitte wählen Sie die Grafikkarte, deren CyberGraphX Monitordatei erneuern wollen:\n")) (set #todo-prompt "\nWelches der folgenden Programme wollen Sie installieren: ?\n") (set #cgxmode-todo " CGXMode - Erstellen & Ändern von Bildschirmmodis") (set #wheremode "Wohin wollen Sie das CGXMode Programm kopiert haben?") (set #whereshowcgxconfig "Wohin wollen Sie das ShowCGXconfig Programm kopiert haben?") (set #showcgxconfig " ShowCGXconfig - CyberGraphX Informationsprogramm") ) ) ;******************************************************************************** ; Start Update ;******************************************************************************** ;(message #by) (message #nobackup) ;******************************************************************** ; Double Check on the CPU ;******************************************************************** (set cpu (database "cpu")) (if (= cpu 68000) (set #cpu 0)) (if (= cpu 68010) (set #cpu 0)) (if (= cpu 68020) (set #cpu 0)) (if (= cpu 68030) (set #cpu 0)) (if (= cpu 68040) (set #cpu 1)) (if (= cpu 68060) (set #cpu 1)) (if (= @installer-version 0) (if (> (exists ("sys:libs/68060.library")) 0) (set #cpu 1) ) (if (= cpu 68060) (set #cpu 1)) ) (set cpuPick (askchoice (choices "68020 or 68030" "68040 or 68060") (prompt #askcpu) (help #askcpu) (default #cpu) ) ) (if (= cpuPick 0) (set cpuadd ".020")) (if (= cpuPick 1) (set cpuadd ".040")) ;******************************************************************* ; ASK where cybergfx libs are ;******************************************************************* (set wherelibs (askdir (prompt #wherelibs) (help #wherelibs) (default "SYS:Libs") ) ) ;******************************************************************* ; Copy libs if there ;******************************************************************* (if (exists (tackon "cgxsystemlib" (cat "cgxsystem.library" cpuadd)) ) (copyfiles (source (tackon "cgxsystemlib" (cat "cgxsystem.library" cpuadd))) (dest wherelibs) (newname "cgxsystem.library") (optional "nofail") ) ) (if (exists (tackon "cgxmpeglib" (cat "cgxmpeg.library" cpuadd)) ) (copyfiles (source (tackon "cgxmpeglib" (cat "cgxmpeg.library" cpuadd))) (dest wherelibs) (newname "cgxmpeg.library") (optional "nofail") ) ) (if (AND (exists "cgxbootpiclib/cgxbootpic.library") (= 0 (exists "libs:cgxbootpic.library")) ) (copyfiles (source "cgxbootpiclib/cgxbootpic.library") (dest wherelibs) (optional "nofail") ) ) ;******************************************************************* ; ASK what board to update ;******************************************************************* (set BGuess 0) (if (> (exists ("devs:monitors/CVision3D")) 0) (set BGuess (+ BGuess 1)) ) (if (> (exists ("devs:monitors/CVision64")) 0) (set BGuess (+ BGuess 2)) ) (if (> (exists ("devs:monitors/PicassoII")) 0) (set BGuess (+ BGuess 4)) ) (if (> (exists ("devs:monitors/Spectrum")) 0) (set BGuess (+ BGuess 8)) ) (if (> (exists ("devs:monitors/Piccolo")) 0) (set BGuess (+ BGuess 16)) ) (if (> (exists ("devs:monitors/PiccoSD64")) 0) (set BGuess (+ BGuess 32)) ) (if (> (exists ("devs:monitors/Inferno")) 0) (set BGuess (+ BGuess 64)) ) (if (> (exists ("devs:monitors/PicassoIV")) 0) (set BGuess (+ BGuess 128)) ) (set board (askoptions (choices " CyberVision64/3D" " CyberVision64" " PicassoII(+)" " Spectrum" " Piccolo" " Piccolo SD64" " Inferno" " Picasso IV" (prompt #whatboard) (help #whatboard) (default BGuess) ) ) ) (if (IN board 0) ( ; 0=Z3 - 5=Z2 (set error (run "tools/ChkCV3DZorro")) (if (= error 0) (set guessZ 1) (set guessZ 0) ) (set pickZ (askchoice (choices "zorro2 - Amiga 2000/zorro2 Expansion Box" "zorro3 - Amiga 3000(T)/4000(T)") (prompt #askzorro) (help #askzorro) (default guessZ) ) ) (if (= pickZ 0) (set zadd ".Z2")) (if (= pickZ 1) (set zadd ".Z3")) (if (exists (tackon "S3Drivers" (cat "CVision3D" zadd))) (if (= (exists (tackon "devs:monitors" "CVision3D.info")) 0) (copyfiles (source (tackon "S3Drivers" (cat "CVision3D" zadd))) (dest "devs:monitors") (newname "CVision3D") (infos) (optional "nofail") ) (copyfiles (source (tackon "S3Drivers" (cat "CVision3D" zadd))) (dest "devs:monitors") (newname "CVision3D") (optional "nofail") ) ) ) (if (exists (tackon "cgxvideolib" (cat "cgxvideo.library" cpuadd)) ) (copyfiles (source (tackon "cgxvideolib" (cat "cgxvideo.library" cpuadd))) (dest wherelibs) (newname "cgxvideo.library") (optional "nofail") ) ) (if (exists (tackon "cgx3dvirgelib" (cat "cgx3dvirgin.library" cpuadd)) ) (copyfiles (source (tackon "cgx3dvirgelib" (cat "cgx3dvirgin.library" cpuadd))) (dest wherelibs) (newname "cgx3dvirgin.library") (optional "nofail") ) ) ) ) (if (AND (exists (tackon "S3Drivers" "CVision64")) (IN board 1) ) (if (= (exists (tackon "devs:monitors" "CVision64.info")) 0) (copyfiles (source (tackon "S3Drivers" "CVision64")) (dest "devs:monitors") (infos) (optional "nofail") ) (copyfiles (source (tackon "S3Drivers" "CVision64")) (dest "devs:monitors") (optional "nofail") ) ) ) (if (AND (exists (tackon "CLDrivers" "PicassoII")) (IN board 2) ) (if (= (exists (tackon "devs:monitors" "PicassoII.info")) 0) (copyfiles (source (tackon "CLDrivers" "PicassoII")) (dest "devs:monitors") (infos) (optional "nofail") ) (copyfiles (source (tackon "CLDrivers" "PicassoII")) (dest "devs:monitors") (optional "nofail") ) ) ) (if (AND (exists (tackon "CLDrivers" "Spectrum")) (IN board 3) ) (if (= (exists (tackon "devs:monitors" "Spectrum.info")) 0) (copyfiles (source (tackon "CLDrivers" "Spectrum")) (dest "devs:monitors") (infos) (optional "nofail") ) (copyfiles (source (tackon "CLDrivers" "Spectrum")) (dest "devs:monitors") (optional "nofail") ) ) ) (if (AND (exists (tackon "CLDrivers" "Piccolo")) (IN board 4) ) (if (= (exists (tackon "devs:monitors" "Piccolo.info")) 0) (copyfiles (source (tackon "CLDrivers" "Piccolo")) (dest "devs:monitors") (infos) (optional "nofail") ) (copyfiles (source (tackon "CLDrivers" "Piccolo")) (dest "devs:monitors") (optional "nofail") ) ) ) (if (AND (exists (tackon "CLDrivers" "PiccoSD64")) (IN board 5) ) (if (= (exists (tackon "devs:monitors" "PiccoSD64.info")) 0) (copyfiles (source (tackon "CLDrivers" "PiccoSD64")) (dest "devs:monitors") (infos) (optional "nofail") ) (copyfiles (source (tackon "CLDrivers" "PiccoSD64")) (dest "devs:monitors") (optional "nofail") ) ) ) (if (AND (exists (tackon "CLDrivers" "Inferno")) (IN board 6) ) (if (= (exists (tackon "devs:monitors" "Inferno.info")) 0) (copyfiles (source (tackon "CLDrivers" "Inferno")) (dest "devs:monitors") (infos) (optional "nofail") ) (copyfiles (source (tackon "CLDrivers" "Inferno")) (dest "devs:monitors") (optional "nofail") ) ) ) (if (AND (exists (tackon "CLDrivers" "PicassoIV")) (IN board 7) ) (if (= (exists (tackon "devs:monitors" "PicassoIV.info")) 0) (copyfiles (source (tackon "CLDrivers" "PicassoIV")) (dest "devs:monitors") (infos) (optional "nofail") ) (copyfiles (source (tackon "CLDrivers" "PicassoIV")) (dest "devs:monitors") (optional "nofail") ) ) ) ;********************************************************************************* ;* Ask user to install CGXMode ;********************************************************************************* (set ToDo (askoptions (choices #cgxmode-todo #showcgxconfig) (prompt #todo-prompt) (help #todo-prompt) (default 3) ) ) (if (IN ToDo 0) ( (set wheremode (askdir (prompt #wheremode) (help #wheremode) (default "SYS:Prefs") ) ) (if (exists "CGXMode/CGXMode") (if (= (exists (tackon wheremode "CGXMode.info")) 0) (copyfiles (source "CGXMode/CGXMode") (dest wheremode) (infos) (optional "nofail")) (copyfiles (source "CGXMode/CGXMode") (dest wheremode) (optional "nofail")) ) ) (if (IN board 7) (set TTBOARD "PicassoIV") ) (if (IN board 6) (set TTBOARD "Inferno") ) (if (IN board 5) (set TTBOARD "PiccoSD64") ) (if (IN board 4) (set TTBOARD "Piccolo") ) (if (IN board 3) (set TTBOARD "Spectrum") ) (if (IN board 2) (set TTBOARD "PicassoII") ) (if (IN board 1) (set TTBOARD "CVision64") ) (if (IN board 0) (set TTBOARD "CVision3D") ) (if (> board 0) (tooltype (dest (tackon wheremode "CGXMode")) (settooltype "BOARD" TTBOARD) ) ) (if (= @language "deutsch") ( (if (= (exists "Locale:Catalogs") 0) (makedir "sys:Locale/Catalogs") ) (if (= (exists (tackon "Locale:Catalogs" "deutsch")) 0) (makedir (tackon "sys:Locale/Catalogs" "deutsch")) ) (if (exists "CGXMode/catalogs/deutsch/cgxmode.catalog") (copyfiles (source "CGXMode/catalogs/deutsch/cgxmode.catalog") (dest "sys:Locale/Catalogs/deutsch") ) ) ) ) ) ) (if (IN ToDo 1) ( (set whereshowcgxconfig (askdir (prompt #whereshowcgxconfig) (help #whereshowcgxconfig) (default "SYS:Tools") ) ) (if (exists "tools/showcgxconfig") (if (= (exists (tackon whereshowcgxconfig "CGXMode.info")) 0) (copyfiles (source "tools/showcgxconfig") (dest whereshowcgxconfig) (infos) (optional "nofail")) (copyfiles (source "tools/showcgxconfig") (dest whereshowcgxconfig) (optional "nofail")) ) ) ) ) ;******************************************************************* ; END ;******************************************************************* (if (> (exists ("c:multiview")) 0) (set #mpath "c:") ) (if (> (exists ("sys:Utilities/multiview")) 0) (set #mpath "sys:Utilities") ) (run (cat "run " #mpath "/multiview Changes.txt") ) (set @default-dest "sys:") (set #done "Update Complete!") (if (= @language "deutsch") (set #done "Update fertig!") ) (exit #done)